package com.ronglian.register_mini_program.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxUserAccessTokensExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxUserAccessTokensExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idIsNull() {
            addCriterion("wx_app_id is null");
            return (Criteria) this;
        }

        public Criteria andWx_app_idIsNotNull() {
            addCriterion("wx_app_id is not null");
            return (Criteria) this;
        }

        public Criteria andWx_app_idEqualTo(String value) {
            addCriterion("wx_app_id =", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idNotEqualTo(String value) {
            addCriterion("wx_app_id <>", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idGreaterThan(String value) {
            addCriterion("wx_app_id >", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idGreaterThanOrEqualTo(String value) {
            addCriterion("wx_app_id >=", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idLessThan(String value) {
            addCriterion("wx_app_id <", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idLessThanOrEqualTo(String value) {
            addCriterion("wx_app_id <=", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idLike(String value) {
            addCriterion("wx_app_id like", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idNotLike(String value) {
            addCriterion("wx_app_id not like", value, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idIn(List<String> values) {
            addCriterion("wx_app_id in", values, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idNotIn(List<String> values) {
            addCriterion("wx_app_id not in", values, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idBetween(String value1, String value2) {
            addCriterion("wx_app_id between", value1, value2, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_idNotBetween(String value1, String value2) {
            addCriterion("wx_app_id not between", value1, value2, "wx_app_id");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretIsNull() {
            addCriterion("wx_app_secret is null");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretIsNotNull() {
            addCriterion("wx_app_secret is not null");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretEqualTo(String value) {
            addCriterion("wx_app_secret =", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretNotEqualTo(String value) {
            addCriterion("wx_app_secret <>", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretGreaterThan(String value) {
            addCriterion("wx_app_secret >", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretGreaterThanOrEqualTo(String value) {
            addCriterion("wx_app_secret >=", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretLessThan(String value) {
            addCriterion("wx_app_secret <", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretLessThanOrEqualTo(String value) {
            addCriterion("wx_app_secret <=", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretLike(String value) {
            addCriterion("wx_app_secret like", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretNotLike(String value) {
            addCriterion("wx_app_secret not like", value, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretIn(List<String> values) {
            addCriterion("wx_app_secret in", values, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretNotIn(List<String> values) {
            addCriterion("wx_app_secret not in", values, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretBetween(String value1, String value2) {
            addCriterion("wx_app_secret between", value1, value2, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_app_secretNotBetween(String value1, String value2) {
            addCriterion("wx_app_secret not between", value1, value2, "wx_app_secret");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenIsNull() {
            addCriterion("wx_access_token is null");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenIsNotNull() {
            addCriterion("wx_access_token is not null");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenEqualTo(String value) {
            addCriterion("wx_access_token =", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenNotEqualTo(String value) {
            addCriterion("wx_access_token <>", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenGreaterThan(String value) {
            addCriterion("wx_access_token >", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenGreaterThanOrEqualTo(String value) {
            addCriterion("wx_access_token >=", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenLessThan(String value) {
            addCriterion("wx_access_token <", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenLessThanOrEqualTo(String value) {
            addCriterion("wx_access_token <=", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenLike(String value) {
            addCriterion("wx_access_token like", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenNotLike(String value) {
            addCriterion("wx_access_token not like", value, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenIn(List<String> values) {
            addCriterion("wx_access_token in", values, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenNotIn(List<String> values) {
            addCriterion("wx_access_token not in", values, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenBetween(String value1, String value2) {
            addCriterion("wx_access_token between", value1, value2, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_access_tokenNotBetween(String value1, String value2) {
            addCriterion("wx_access_token not between", value1, value2, "wx_access_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenIsNull() {
            addCriterion("wx_refresh_token is null");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenIsNotNull() {
            addCriterion("wx_refresh_token is not null");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenEqualTo(String value) {
            addCriterion("wx_refresh_token =", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenNotEqualTo(String value) {
            addCriterion("wx_refresh_token <>", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenGreaterThan(String value) {
            addCriterion("wx_refresh_token >", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenGreaterThanOrEqualTo(String value) {
            addCriterion("wx_refresh_token >=", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenLessThan(String value) {
            addCriterion("wx_refresh_token <", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenLessThanOrEqualTo(String value) {
            addCriterion("wx_refresh_token <=", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenLike(String value) {
            addCriterion("wx_refresh_token like", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenNotLike(String value) {
            addCriterion("wx_refresh_token not like", value, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenIn(List<String> values) {
            addCriterion("wx_refresh_token in", values, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenNotIn(List<String> values) {
            addCriterion("wx_refresh_token not in", values, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenBetween(String value1, String value2) {
            addCriterion("wx_refresh_token between", value1, value2, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andWx_refresh_tokenNotBetween(String value1, String value2) {
            addCriterion("wx_refresh_token not between", value1, value2, "wx_refresh_token");
            return (Criteria) this;
        }

        public Criteria andExpires_inIsNull() {
            addCriterion("expires_in is null");
            return (Criteria) this;
        }

        public Criteria andExpires_inIsNotNull() {
            addCriterion("expires_in is not null");
            return (Criteria) this;
        }

        public Criteria andExpires_inEqualTo(Integer value) {
            addCriterion("expires_in =", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inNotEqualTo(Integer value) {
            addCriterion("expires_in <>", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inGreaterThan(Integer value) {
            addCriterion("expires_in >", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inGreaterThanOrEqualTo(Integer value) {
            addCriterion("expires_in >=", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inLessThan(Integer value) {
            addCriterion("expires_in <", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inLessThanOrEqualTo(Integer value) {
            addCriterion("expires_in <=", value, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inIn(List<Integer> values) {
            addCriterion("expires_in in", values, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inNotIn(List<Integer> values) {
            addCriterion("expires_in not in", values, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inBetween(Integer value1, Integer value2) {
            addCriterion("expires_in between", value1, value2, "expires_in");
            return (Criteria) this;
        }

        public Criteria andExpires_inNotBetween(Integer value1, Integer value2) {
            addCriterion("expires_in not between", value1, value2, "expires_in");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeEqualTo(Date value) {
            addCriterion("create_time =", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThan(Date value) {
            addCriterion("create_time >", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThan(Date value) {
            addCriterion("create_time <", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIn(List<Date> values) {
            addCriterion("create_time in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeEqualTo(Date value) {
            addCriterion("update_time =", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeGreaterThan(Date value) {
            addCriterion("update_time >", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeLessThan(Date value) {
            addCriterion("update_time <", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeIn(List<Date> values) {
            addCriterion("update_time in", values, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "update_time");
            return (Criteria) this;
        }

        public Criteria andUpdate_timeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "update_time");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}